package com.jjty.dataGenerator.jshjy.service;

import com.jjty.dataGenerator.jshjy.entity.*;
import com.jjty.dataGenerator.jshjy.mapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JsDataService {
    @Autowired
    private JsHeartbeatDataMapper heartbeatDataMapper;
    @Autowired
    private JsLocationDataMapper locationDataMapper;
    @Autowired
    private JsCallDataMapper callDataMapper;
    @Autowired
    private JsAttendanceDataMapper attendanceDataMapper;
    @Autowired
    private JsBaseDataMapper baseDataMapper;

    public void saveHeartbeatData(JsHeartbeatData data) {
        heartbeatDataMapper.insert(data);
    }
    public void saveLocationData(JsLocationData data) {
        locationDataMapper.insert(data);
    }
    public void saveCallData(JsCallData data) {
        callDataMapper.insert(data);
    }
    public void saveAttendanceData(JsAttendanceData data) {
        attendanceDataMapper.insert(data);
    }
    public void saveBaseData(JsBaseData data) {
        baseDataMapper.insert(data);
    }
}